<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../org/angular.min.js"></script>
    <script src="../org/jquery.min.js"></script>
</head>
<body>

<div ng-app="hd">
    <div ng-controller="ctrl1">
        变量方式：<input type="text" ng-model="name">
        类的方式：<input type="text" ng-model="title.name">
        {{name}}<hr>
        {{title.name}}
        <div ng-controller="ctrl2">
            变量方式：<input type="text" ng-model="name">
            类的方式：<input type="text" ng-model="title.name">
            {{name}}<hr>
            {{title.name}}
        </div>
    </div>

</div>


<script>
    var m = angular.module('hd', []);
    m.controller('ctrl1', ['$scope', function ($scope) {
        $scope.name = '后盾人';
        $scope.title = {name: '人人后盾'};
    }]);
    m.controller('ctrl2', ['$scope', function ($scope) {
        //$scope.name = 'hdcms';
    }]);
</script>


</body>
</html>

